<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" 
    AutoEventWireup="false" CodeFile="AddPayment.aspx.vb" 
    Inherits="Accounting_AddPayment" title="CIMS" %>

<%@ Register Src="../WebControls/PolicySearch.ascx" TagName="PolicySearch" TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div id="divMain" runat="server">
        <table width="800px">
            <tr>
                <td align="left" style="font-weight: bold; font-size: 10pt; width: 800px; font-family: Arial; text-align: left">
                    <asp:LinkButton ID="Policysearch_btn" runat="server" CausesValidation="False">Select Policy</asp:LinkButton></td>
            </tr>
        </table>
        <table border="0" cellpadding="0" cellspacing="0" width="800">
            <tr><td style="font-size: 3px;height: 5px;">
            
            </td><uc1:PolicySearch ID="PolicySearch" runat="server" Visible="true" /></tr>
        </table>
        
        <table border="0" cellpadding="0" cellspacing="0" width="800">
            <tr>
            <td align="center" style="font-weight: bold; font-size: 10pt; font-family: Arial">
                </td>
            <td style="font-size: 11pt; font-family: Arial; font-weight: bold;" align="center">
                </td>
            <td align="center" style="font-weight: bold; font-size: 10pt; font-family: Arial">
                </td>
            <td style="font-size: 11pt; font-family: Arial; font-weight: bold;" align="center">
                </td>
            <td align="center" style="font-weight: bold; font-size: 10pt; font-family: Arial; width: 5px;">
                </td>
            <td style="font-size: 11pt; font-family: Arial; font-weight: bold;" align="center">
                </td>
            <td align="center" style="font-weight: bold; font-size: 10pt; font-family: Arial; width: 137px;">
                </td>
            <td align="left" style="font-weight: bold; font-size: 10pt; font-family: Arial; width: 368px; text-align: right;"></td>
            </tr>
        </table>
    

        <table border="0" cellpadding="0" cellspacing="0" width="800">
            <tr><td style="font-size: 3px; background-color: #105BA4; height: 3px;"></td></tr>
        </table>

        <table border="0" cellpadding="0" cellspacing="0" width="800">
                
        <tr><td style="width: 800px">

            <table border="0" cellpadding="0" cellspacing="0" width="800" style="height: 35px">
                <tr>
                    <td style="font-size: 10pt; font-family: Verdana; width: 140px;" align="left" valign="middle">
                        &nbsp;&nbsp; AR Number:</td>
                    <td align="left" style="width: 260px" valign="middle">
                        <asp:TextBox ID="PaymentNo_txt" runat="server" Width="232px" MaxLength="50"></asp:TextBox></td>
                    <td style="font-size: 10pt; font-family: Verdana; width: 100px;" align="left" valign="middle">
                        AR Type:</td>
                    <td align="left" style="width: 300px" valign="middle">
                        <br />
                <asp:RadioButtonList ID="rblPrint" runat="server" Font-Names="Tahoma" Font-Size="10pt" AutoPostBack="True">
                    <asp:ListItem Selected="True" Value="Swiss_AR">Swiss Offshore Limited</asp:ListItem>
                    <asp:ListItem Value="Offshore_AR">Offshore Administration Inc.</asp:ListItem>
                    <asp:ListItem Value="Finanz_AR">One Finanz, Limited</asp:ListItem>
                </asp:RadioButtonList></td>
                </tr>
            </table>
                
        </td></tr>
        
        <tr><td style="width: 800px">

            <table border="0" cellpadding="0" cellspacing="0" width="800" style="height: 35px">
                <tr>
                    <td style="font-size: 10pt; font-family: Verdana; width: 140px;" align="left" valign="middle">
                        &nbsp;&nbsp; AR Date:</td>
                    <td align="left" style="width: 260px" valign="top">
                        <asp:TextBox ID="ARDT_txt" runat="server" Width="232px"></asp:TextBox><asp:Label ID="Label1" runat="server" Font-Names="Verdana" Font-Overline="False"
                            Font-Size="7pt" ForeColor="Gray" Text="dd/mm/yyyy" Width="64px"></asp:Label></td>
                    <td style="font-size: 10pt; font-family: Verdana; width: 100px;" align="left" valign="top">
                        Payment Date:</td>
                    <td align="left" style="width: 300px" valign="top">
                        <asp:TextBox ID="PaymentDT_txt" runat="server" Width="232px"></asp:TextBox><br />
                        <asp:Label ID="Label2" runat="server" Font-Names="Verdana" Font-Overline="False"
                            Font-Size="7pt" ForeColor="Gray" Text="dd/mm/yyyy" Width="64px"></asp:Label></td>
                </tr>
            </table>
                
        </td></tr>

        <tr><td style="width: 800px">

            <table border="0" cellpadding="0" cellspacing="0" width="800" style="height: 35px">
                <tr>
                    <td style="font-size: 10pt; font-family: Verdana; width: 140px;" align="left" valign="top">
                        &nbsp; &nbsp;Policy Number:</td>
                    <td align="left" style="width: 260px" valign="top">
                        <asp:TextBox ID="PolicyNo_txt" runat="server" Enabled="False" Width="232px"></asp:TextBox></td>
                    <td style="font-size: 10pt; font-family: Verdana; width: 100px;" align="left" valign="top">
                        Due Date:</td>
                    <td align="left" style="width: 300px" valign="top">
                        <asp:TextBox ID="DueDT_txt" runat="server" Width="232px"></asp:TextBox><br />
                        <asp:Label ID="Label3" runat="server" Font-Names="Verdana" Font-Overline="False"
                            Font-Size="7pt" ForeColor="Gray" Text="dd/mm/yyyy" Width="64px"></asp:Label></td>
                </tr>
            </table>
                
        </td></tr>

        <tr><td style="width: 800px">

            <table border="0" cellpadding="0" cellspacing="0" width="800" style="height: 35px">
                <tr>
                    <td style="font-size: 10pt; font-family: Verdana; width: 140px;" align="left">
                        &nbsp; &nbsp;Client Name:</td>
                    <td align="left" style="width: 260px">
                        <asp:TextBox ID="ClientName_txt" runat="server" Width="232px" Enabled="False"></asp:TextBox></td>
                    <td style="font-size: 10pt; font-family: Verdana; width: 100px;" align="left">
                        </td>
                    <td align="left" style="width: 300px">
                        </td>
                </tr>
            </table>
                
        </td></tr>

        <tr><td style="width: 800px">

            <table border="0" cellpadding="0" cellspacing="0" width="800" style="height: 35px">
                <tr>
                    <td style="font-size: 10pt; font-family: Verdana; width: 140px;" align="left">
                        &nbsp; &nbsp;Provider:</td>
                    <td align="left" style="width: 260px">
                        <asp:TextBox ID="Provider_txt" runat="server" Width="232px" Enabled="False"></asp:TextBox></td>
                    <td style="font-size: 10pt; font-family: Verdana; width: 100px;" align="left">
                        Product:</td>
                    <td align="left" style="width: 300px">
                        <asp:TextBox ID="Product_txt" runat="server" Width="232px" Enabled="False"></asp:TextBox></td>
                </tr>
            </table>
                
        </td></tr>

        <tr><td style="width: 800px">

            <table border="0" cellpadding="0" cellspacing="0" width="800" style="height: 35px">
                <tr>
                    <td style="font-size: 10pt; font-family: Verdana; width: 140px; height: 35px;" align="left">
                        &nbsp; &nbsp;Amount:</td>
                    <td align="left" style="width: 260px; height: 35px;">
                        <asp:TextBox ID="Amount_txt" runat="server" Width="232px"></asp:TextBox></td>
                    <td style="font-size: 10pt; font-family: Verdana; width: 100px; height: 35px;" align="left">
                        Currency:</td>
                    <td align="left" style="width: 300px; height: 35px;">
                        <asp:DropDownList ID="Currency_cmb" runat="server" Width="240px">
                        </asp:DropDownList></td>
                </tr>
            </table>
                
        </td></tr>

        <tr><td style="width: 800px">

            <table border="0" cellpadding="0" cellspacing="0" width="800" style="height: 35px">
                <tr>
                    <td style="font-size: 10pt; font-family: Verdana; width: 140px;" align="left">
                        &nbsp;&nbsp;Payment Type:</td>
                    <td align="left" style="width: 260px">
                        <asp:DropDownList ID="PaymentType_cmb" runat="server" Width="240px">
                        </asp:DropDownList></td>
                    <td style="font-size: 10pt; font-family: Verdana; width: 100px;" align="left">
                        Details:</td>
                    <td align="left" style="width: 300px">
                        <asp:TextBox ID="txtRemarks" runat="server" Height="32px" TextMode="MultiLine"
                            Width="232px"></asp:TextBox></td>
                </tr>
            </table>
                
        </td></tr>
        <tr><td style="width: 800px">

            <table border="0" cellpadding="0" cellspacing="0" width="800" style="height: 35px">
                <tr>
                    <td style="font-size: 10pt; font-family: Verdana; width: 140px;" align="left">
                        &nbsp;&nbsp;Payment Status:</td>
                    <td align="left" style="width: 260px">
                        <asp:DropDownList ID="PaymentStatus_cmb" runat="server" Width="240px">
                        </asp:DropDownList></td>
                    <td style="font-size: 10pt; font-family: Verdana; width: 100px;" align="left">
                        </td>
                    <td align="left" style="width: 300px">
                        </td>
                </tr>
            </table>
                
        </td></tr>
        <tr><td style="width: 800px; height: 54px;">

            <table border="0" cellpadding="0" cellspacing="0" width="800" style="height: 35px">
                <tr>
                    <td style="width: 400px; height: 24px; text-align: left;">
                        &nbsp;&nbsp;
                <asp:Button ID="btnPrint" runat="server" Text="Print" BackColor="Gainsboro" Font-Names="Verdana" Width="72px" CausesValidation="False" /></td>
                    <td style="height: 24px">
                        <asp:Button ID="Save_btn" runat="server" Text="Save" BackColor="Gainsboro" Font-Names="Verdana" Width="72px" />
                    </td>
                    <td style="height: 24px">
                        <asp:Button ID="Cancel_btn" runat="server" Text="Back" BackColor="Gainsboro" Font-Names="Verdana" Width="72px" CausesValidation="False" />
                    </td>
                </tr>
            </table>
            
        </td></tr>

        </table>
        <asp:Panel ID="Panel_Print" runat="server" Height="50px" Width="800px">
                <br />
                <div style="text-align: left;">
                <br />
                    &nbsp;</div>
        </asp:Panel>
                
    </div>
    <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender1" runat="server" Mask="99/99/9999"
        MaskType="Date" TargetControlID="DueDT_txt">
    </ajaxToolkit:MaskedEditExtender>
    <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender2" runat="server" Mask="99/99/9999"
        MaskType="Date" TargetControlID="PaymentDT_txt">
    </ajaxToolkit:MaskedEditExtender><ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender3" runat="server" Mask="99/99/9999"
        MaskType="Date" TargetControlID="ARDT_txt">
    </ajaxToolkit:MaskedEditExtender>
    <asp:RequiredFieldValidator ID="rfv1" runat="server" ControlToValidate="PolicyNo_txt"
        ErrorMessage="AR Number Required" ForeColor="White" Text="."></asp:RequiredFieldValidator>
    <asp:CustomValidator ID="dtv1" runat="server" ClientValidationFunction="valDate"
        ControlToValidate="ARDT_txt" ErrorMessage="Invalid AR Date" ForeColor="White"
        ValidateEmptyText="True">.</asp:CustomValidator>
    <asp:CustomValidator ID="dtv4" runat="server" ClientValidationFunction="valDate"
        ControlToValidate="PaymentDT_txt" ErrorMessage="Invalid Payment Date" ForeColor="White">.</asp:CustomValidator>
    <asp:RequiredFieldValidator
            ID="rfv3" runat="server" ControlToValidate="PaymentType_cmb" ErrorMessage="Payment Type Required"
            ForeColor="White" Text="."></asp:RequiredFieldValidator>
    <asp:RequiredFieldValidator ID="rfv4" runat="server" ControlToValidate="Amount_txt"
        ErrorMessage="Amount Required" ForeColor="White" Text="."></asp:RequiredFieldValidator>
    <asp:RequiredFieldValidator ID="rfv5" runat="server" ControlToValidate="Currency_cmb"
        ErrorMessage="Currency Required" ForeColor="White" Text="."></asp:RequiredFieldValidator>
    <asp:RequiredFieldValidator ID="rfv6" runat="server" ControlToValidate="PaymentType_cmb"
        ErrorMessage="Payment Type Required" ForeColor="White" Text="."></asp:RequiredFieldValidator>
    <asp:ValidationSummary ID="ValidationSummary1"
                runat="server" ShowMessageBox="True" ShowSummary="False" />
    <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server"
        TargetControlID="rfv1">
    </ajaxToolkit:ValidatorCalloutExtender>
    <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server"
        TargetControlID="dtv1">
    </ajaxToolkit:ValidatorCalloutExtender><ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender3" runat="server"
        TargetControlID="rfv3">
    </ajaxToolkit:ValidatorCalloutExtender><ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender4" runat="server"
        TargetControlID="rfv4">
    </ajaxToolkit:ValidatorCalloutExtender>
    <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender5" runat="server"
        TargetControlID="rfv5">
    </ajaxToolkit:ValidatorCalloutExtender>
    <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender6" runat="server"
        TargetControlID="rfv6">
    </ajaxToolkit:ValidatorCalloutExtender><ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender7" runat="server"
        TargetControlID="dtv4">
    </ajaxToolkit:ValidatorCalloutExtender>
    <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server"
        FilterType="Custom, Numbers" TargetControlID="Amount_txt" ValidChars=".">
    </ajaxToolkit:FilteredTextBoxExtender>
</asp:Content>
